import Vue from 'vue'
import Router from 'vue-router'
import Layout from '@/layout'
Vue.use(Router)
export const routelist = [{
    path: '/login',
    hidden: true,
    component: () => import("@/page/login.vue")
  },
  {
    path: '/401',
    hidden: true,
    component: () => import("@/page/errorPage/401.vue")
  },
  {
    path: '/404',
    hidden: true,
    component: () => import("@/page/errorPage/404.vue")
  },
  {
    path: '/',
    name: '',
    component: Layout,
    hidden: false,
    isLeaf: true,
    children: [{
      id: "default",
      hidden: false,
      meta: {
        title: "首页",
        icon: "el-icon-menu"
      },
      name: 'default',
      path: '/',
      component: () => import("@/page/default.vue")
    }]
  },
];
export default new Router({
  mode: 'history', // 默认为'hash'模式
  routes: routelist
})

